package com.qf.controller;

import com.qf.entity.StudentVO;
import com.qf.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FindStudentAndAllSubjectAndTeacherByStuid {
    @Autowired
    private StudentService studentService;
    @GetMapping("/details/{sid}")
    public StudentVO getStudentDetails(@PathVariable int sid) {
        return studentService.findStudentAndAllSubjectAndTeacherByStuid(sid);
    }
}
